package com.yb0os1.minispring.testClass;

import com.yb0os1.minispring.anno.AutoWired;
import com.yb0os1.minispring.anno.Component;
import com.yb0os1.minispring.anno.PostConstruct;

@Component
public class Cat {
    @AutoWired
    private Dog dog;
    @AutoWired
    private Cat cat;
    @PostConstruct
    public void init() {
        System.out.println("cat初始化，有一个属性："+dog);
        System.out.println("cat初始化，有一个属性："+cat);
    }
}
